From bf05b3645a736cac4976dc9757f727a99703b34b Mon Sep 17 00:00:00 2001 From: Cedric CHEDALEUX Date: Fri, 28 Feb 2025 13:25:06 +0100 Subject: [PATCH] yajl: add host build This patch adds the necessary host build infrastructure for yajl. While OpenWrt doesn't strictly need this right now, merging this change prevents downstream projects (like prplOS) from having to fork the package just to build their host tools, thus keeping the code bases closer. Signed-off-by: Cedric CHEDALEUX --- libs/yajl/Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/libs/yajl/Makefile b/libs/yajl/Makefile index 800ce3d925..75283cbd97 100644 --- a/libs/yajl/Makefile +++ b/libs/yajl/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=yajl PKG_VERSION:=2.1.0 -PKG_RELEASE:=3 +PKG_RELEASE:=4 PKG_SOURCE_PROTO:=git PKG_SOURCE_URL:=https://github.com/lloyd/yajl @@ -24,6 +24,7 @@ PKG_CPE_ID:=cpe:/a:yajl_project:yajl CMAKE_INSTALL:=1 include $(INCLUDE_DIR)/package.mk +include $(INCLUDE_DIR)/host-build.mk include $(INCLUDE_DIR)/cmake.mk define Package/yajl @@ -46,4 +47,10 @@ define Package/yajl/install $(CP) $(PKG_INSTALL_DIR)/usr/lib/libyajl.so* $(1)/usr/lib/ endef +define Host/Install + $(call Host/Install/Default) + mv $(1)/share/pkgconfig/yajl.pc $(1)/lib/pkgconfig/yajl.pc +endef + $(eval $(call BuildPackage,yajl)) +$(eval $(call HostBuild)) -- 2.30.2